/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-04-07 08:29:09
 * @LastEditTime : 2023-04-07 09:03:39
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Modal\ThrModalList\GantryCraneCameras.jsx
 * @Description  :
 */
/*
 * @Author: 飞越疯人院 353362604@qq.com
 * @Date: 2022-09-21 08:39:23
 * @LastEditors: 飞越疯人院 353362604@qq.com
 * @LastEditTime: 2023-02-15 15:13:32
 * @FilePath: \adminstration\src\Common\Modal\ThrModalList\LabReportTemplates.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { API_LIST } from '../../Api/Api'
import { commonTableList } from '../config'

export const GantryCraneCameras = async ({ data, ClientData }) => {
    let dataList = {
        uuid: data.uuid,
        type: '更换摄像头',
        width: 800,
        classification: 'SelectModal',
        isCheckbox: true,
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()['getCamera'],
        pos: 'posGantryCraneCameras',
        path: [data.uuid],
        assemblyData: e => {
            let list = []
            e.forEach(({ uuid }) => (list = [...list, uuid]))
            return list
        },
        columns: [
            { ...commonTableList.organizationUuid, valueEnum: ClientData.organization },
            {
                title: '摄像头名称',
                dataIndex: 'tableName',
            },
            {
                title: '摄像头位置',
                dataIndex: 'cameraPositionName',
            },
            {
                title: '摄像头类型',
                dataIndex: 'cameraTypeName',
            },
        ],
    }
    return dataList
}
